import {formatMessage} from './intl';
import {Routes} from 'Shared/utils/routeManager';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.query',
            defaultMessage: '列表'
        })
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.detail',
            defaultMessage: '维修项目详情'
        }),
        format: '/{0}/detail'
    },
    add: {
        url: '/:id/add',
        title: formatMessage({
            id: 'routes.add',
            defaultMessage: '维修项目新增'
        }),
        format: '/{0}/add'
    },
    laborHour: {
        url: '/:id/laborHour',
        title: formatMessage({
            id: 'routes.laborHour',
            defaultMessage: '工时维护'
        }),
        format: '/{0}/laborHour'
    },
    assist: {
        url: '/:id/assist',
        title: formatMessage({
            id: 'routes.assist',
            defaultMessage: '上级工位绑定'
        }),
        format: '/{0}/assist'
    },
    import: {
        url: '/import',
        title: formatMessage({
            id: 'routes.import',
            defaultMessage: '维修项目及工时导入'
        }),
    },
    importCategory: {
        url: '/category/import',
        title: formatMessage({
            id: 'routes.importCategory',
            defaultMessage: '维修项目分类导入'
        }),
    },
    complexQuery: {
        url: '/complexQuery',
        title: formatMessage({
            id: 'routes.complexQuery',
            defaultMessage: '高级查询'
        }),
    },
    complexQueryDetail: {
        url: '/complexQuery/:id/detail',
        title: formatMessage({
            id: 'routes.complexQueryDetail',
            defaultMessage: '详情'
        }),
        format: '/complexQuery/{0}/detail'
    },
    modeImport: {
        url: '/mode/import',
        title: formatMessage({
            id: 'routes.modeImport',
            defaultMessage: '维修模式导入'
        }),
    },
    mode: {
        url: '/mode',
        title: formatMessage({
            id: 'routes.mode',
            defaultMessage: '维修模式管理'
        }),
    },
    laborhourImport: {
        url: '/laborhour/import',
        title: formatMessage({
            id: 'routes.laborhourImport',
            defaultMessage: '材料工位导入'
        }),
    },
});
export default routes;
